package com.ruoyi.server.api.wxlogin.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @Description TODO 微信认证信息
 * @ClassName WeiXinAuthConfig
**/
@Configuration
public class WeiXinAuth {
    /**
    * @Description 微信APPID
    */
    public static String WEIXIN_APPID ;
    /**
     * @Description 微信SECRET
     */

    public static String WEIXIN_APPSECRET;

    @Value("${wx.appId}")
    private String appId;

    @Value("${wx.appsecret}")
    private String appsecret;
    @PostConstruct
    public void init() {
        WEIXIN_APPID = appId;
        WEIXIN_APPSECRET = appsecret;
    }
}
